package com.baijia.common.enums;

public enum ResponseStatus {

    OK(1000, "success"),

    SYSTEM_ERROR(1001, " System error"),

    NO_PERMISSION(1003, "No permission"),

    PARAM_NULL_APPID(2001, "APPID is null"),

    PARAM_APPID_INVALID(2002, "APPID is invalid"),

    PARAM_PARSE_ERROR(2003, "Parse param error"),

    AUTH_FAIL(2004, "auth fail"),

    NO_TICKET(2005, "ST IS NULL"),

    ACCOUNT_NOT_SUPPORT(2006, "Account type is not supported"),

    IS_SUCCESS(0, "SUCCESS"),

    IS_PARAM_INVALID(3001, "Parameter Invalid"),

    IS_EXEC_FAILED(3002, "Execution Failed"),

    IS_PWD_DISMATCH(3003, "Password Dismatch"),

    IS_FOUND_NO_USER_BY_MOBILE(3004, "Found No User By Mobile"),

    IS_PWD_MOD_FAIL(3005, "Modify Password Failed"),

    IS_SMS_CODE_ERROR(3006, "SMS Code Error");

    private int code;
    private String msg;

    ResponseStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {

        return code;
    }

    public void setCode(int code) {

        this.code = code;
    }

    public String getMsg() {

        return msg;
    }

    public void setMsg(String msg) {

        this.msg = msg;
    }
}
